package com.wetao.lib_common.bean.response;

import com.google.gson.Gson;

import java.io.Serializable;

/**
 * author: zhouyh
 * created on: 2021/6/15 2:27 下午
 * description:
 */
public class ExplainBean implements Serializable {
    /**
     * explainName : 平台的讲解
     * explainType : 1
     * id : 202299
     * explainUrl : http://newpage-test.oss-cn-hangzhou.aliyuncs.com//2021-01-22/aiJCJ259FJ5a7jiFfsI0nI0D07dyjO5U.mp4
     * videoTime : 0
     * explain_name :
     */

    private String explainName;
    private Integer explainType;
    private Integer id;
    private String explainUrl;
    private Integer videoTime;
    private String explain_name;

    public static ExplainBean objectFromData(String str) {

        return new Gson().fromJson(str, ExplainBean.class);
    }

    public String getExplainName() {
        return explainName;
    }

    public void setExplainName(String explainName) {
        this.explainName = explainName;
    }

    public Integer getExplainType() {
        return explainType;
    }

    public void setExplainType(Integer explainType) {
        this.explainType = explainType;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getExplainUrl() {
        return explainUrl;
    }

    public void setExplainUrl(String explainUrl) {
        this.explainUrl = explainUrl;
    }

    public Integer getVideoTime() {
        return videoTime;
    }

    public void setVideoTime(Integer videoTime) {
        this.videoTime = videoTime;
    }

    public String getExplain_name() {
        return explain_name;
    }

    public void setExplain_name(String explain_name) {
        this.explain_name = explain_name;
    }

    @Override
    public String toString() {
        return "ExplainListBean{" +
                "explainName='" + explainName + '\'' +
                ", explainType=" + explainType +
                ", id=" + id +
                ", explainUrl='" + explainUrl + '\'' +
                ", videoTime=" + videoTime +
                ", explain_name='" + explain_name + '\'' +
                '}';
    }
}
